import cv2
import numpy as np

girl = cv2.imread("../asset/girl.jpeg")
h, w, ch = girl.shape
# 精度转化
M = np.float32([[1, 0, 200], [0, 1, 0]])
new_img = cv2.warpAffine(girl, M, (w,h))
while True:
    cv2.imshow('new_img', new_img)
    cv2.imshow('girl', girl)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()
